package service

import (
	"awesomeTask/application/client"
	"awesomeTask/application/server"
	"awesomeTask/application/variable"
	"awesomeTask/system/kernel"
)

type HandlerService struct {
}

func (service HandlerService) Register() {
	ioc := kernel.GetIocInstance()
	/**
	注册客户端处理程序
	*/
	ioc.BindCreateObject(variable.ClientEventHandlerInstance, func() interface{} {
		return new(client.EventClientHandlerObj)
	}, true)
	/**
	注册服务器处理程序
	*/
	ioc.BindCreateObject(variable.ServerEventHandlerInstance, func() interface{} {
		return new(server.ServerEventHandlerObj)
	}, true)
}
func (service HandlerService) Boot() {

}
